package com.leeon.thread;

import  static net.mindview.util.Print.print;

import java.util.concurrent.TimeUnit;


public class ADaemon implements Runnable{

	@Override
	public void run() {
		try {
			print("starting ADaemon");
			TimeUnit.SECONDS.sleep(1);
		} catch (Exception e) {
		}finally {
			print("this should always run?");
		}
	}
	
	public static void main(String[] args) {
		Thread t = new Thread(new ADaemon());
		//t.setDaemon(true);
		t.start();
	}

}
